package com.why.Test;

import com.why.provider.DefaultServiceRegistry;
import com.why.provider.ServiceRegistry;
import com.why.server.RpcServer;
import com.why.testapi.HelloWorld;
import com.why.testapi.HelloWorldImpl;

public class TestServer {
    public static void main(String[] args) {
        ServiceRegistry registry=new DefaultServiceRegistry();
        HelloWorld helloWorld=new HelloWorldImpl();
        registry.toRegisterServices(helloWorld);
        new RpcServer(registry, 8080).start();
    }
}